import { request } from "../untils/request.js"
export default {
    // 新增座位
     add:({ displayName, theaterId }) => {
        request({
            type: "POST",
            url: "/api/seats",
            data: { displayName, theaterId },
        })
    },

        // 根据_id查看座位/searchseat  订单用的
        searchseatId: _id =>
        request({
            url: '/api/seats/searchId',
            type: "get",
            data: { _id }
        }),
}